-- GENERATED SPELL FOR [Marauding Skeleton] --


function spell0_10952(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10952', 10322, 1)
end

function spell1_10952(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10952', 8283, 1)
end

function Sorts_10952(pUnit, Event)
local choix_sorts_10952 = math.random(0, 1)
if choix_sorts_10952 == 0 then
pUnit:RegisterEvent('spell0_10952', 1, 1)
end
if choix_sorts_10952 == 1 then
pUnit:RegisterEvent('spell1_10952', 1, 1)
end
end

function mob10952_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10952', math.random(1500, 3000), 1)
end

function mob10952_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10952_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10952_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10952, 1, 'mob10952_Action')
RegisterUnitEvent(10952, 2, 'mob10952_Leave')
RegisterUnitEvent(10952, 3, 'mob10952_Kill')
RegisterUnitEvent(10952, 4, 'mob10952_Die')
